import { get, post, put, del, download } from './api'

export const login = params => post('/auth/login', params)

export const allAd = params => get('/bk/getAllAdvert', params)

export const addAd = params => put('/bk/addNewAdvert', params)

export const delAd = params => post('/bk/removeAdvert', params)

export const putAd = params => put('/bk/modifyAdvert', params)

export const allFilm = params => get('/bk/getMoviesList', params)

export const delFilm = params => post('/bk/removeMovie', params)

export const addFilm = params => post('/bk/addNewMovie', params)

export const putFilm = params => post('/bk/modifyMovie', params)

export const setFilmConfig = params => post('/bk/setMoviesConfig', params)

export const getFilmConfig = () => get('/bk/getMoviesConfig')

export const getFilmTypes = params => get('/bk/getMoviesConfigTypeList', params)

export const delFilmType = params => post('/bk/removeMovieConfigType', params)

export const addFilmType = params => post('/bk/addNewMovieConfigType', params)

export const putFilmType = params => post('/bk/modifyMovieConfigType', params)

export const getOrderSetting = () => get('/bk/selectOrderConf')

export const putOrderSetting = params => post('/bk/modifyOrderConf', params)

export const allFood = params => get('/bk/listFood', params)

export const allFoodType = params => get('/bk/listFoodType', params)

export const addFood = params => post('/bk/addFood', params)

export const putFood = params => post('/bk/modifyFood', params)

export const putFoodType = params => post('/bk/modifyFoodType', params)

export const addFoodType = params => post('/bk/addFoodType', params)

export const delFoodType = params => post('/bk/removeFoodType', params)

export const delFood = params => post('/bk/removeFood', params)

export const allOrder = params => get('/bk/orderList', params)

export const addCity = params => put('/bk/addCity', params)

export const allCity = params => get('/bk/listCity', params)

export const putCity = params => put('/bk/modifyCity', params)

export const delCity = params => post('/bk/removeCity', params)

export const addArticle = params => put('/bk/addArticle', params)

export const putArticle = params => put('/bk/modifyArticle', params)

export const allArticle = params => get('/bk/listArticle', params)

export const delArticle = params => post('/bk/removeArticle', params)

export const addArticleType = params => post('/bk/addArticleType', params)

export const putArticleType = params => post('/bk/modifyArticleType', params)

export const allArticleType = params => get('/bk/listArticleType', params)

export const delArticleType = params => post('/bk/removeArticleType', params)

export const getThird = () => get('/bk/selectThirdConfig')

export const putThird = params => post('/bk/modifyThirdConfig', params)

export const allUser = params => get('/bk/listUser', params)

export const putUser = params => post('/bk/modifyUserPassword', params)

export const putVersion = params => post('/bk/modifyVersionConfig', params)

export const getVersion = () => get('/bk/selectVersionInfo')

export const addAccount = params => post('/bk/addAccount', params)

export const allAccount = params => get('/bk/listAccount', params)

export const putAccount = params => post('/bk/modifyAccount', params)

export const delAccount = params => post('/bk/removeAccount', params)

export const allRoles = params => get('/bk/listRole', params)

export const addRole = params => post('/bk/addRole', params)

export const putRole = params => post('/bk/modifyRole', params)

export const delRole = params => post('/bk/removeRole', params)

export const picture_upload = params => post('/bk/uploadPicture', params)


// export const exportFilm = () => get('/bk/downloadMovieExcel', { responseType: 'blob' })
export const exportFilm = () => download('/bk/downloadMovieExcel')

export const loadFilm = () => post('/bk/importMovieInfo')


export const addBanner = params => post('/bk/addBanner', params)

export const allBanner = () => get('/bk/listBanner')

export const putBanner = params => post('/bk/modifyBanner', params)

export const delBanner = params => post('/bk/removeBanner', params)

export const getGameAds = params => get("/bk/gameAds", params)

export const editGameAd = params => put("/bk/editGameAd", params)

export const editGame = params => put("/bk/editGame", params)

export const games = params => get("/bk/games", params)

export const delGameAd = params => post("/bk/delGameAd", params)

export const delGame = params => post("/bk/delGame", params)

export const bookAds = params => get('/bk/bookAds', params)

export const delBookAd = params => post('/bk/delBookAd', params)

export const editBookAd = params => put('/bk/editBookAd', params)

export const books = params => get('/bk/books', params)

export const editBook = params => put('/bk/editBook', params)

export const delBook = params => post('/bk/delBook', params)

export const editBookType = params => put('/bk/editBookType', params)

export const bookTypes = params => get('/bk/bookTypes', params)

export const delBookType = params => post('/bk/delBookType', params)

export const musics = params => get('/bk/musics', params)

export const editMusic = params => put('/bk/editMusic', params)

export const delMusic = params => post('/bk/delMusic', params)

export const getUnlock = params => get('/bk/getUnlock', params)

export const getStay = params => get('/bk/getStay', params)

export const exportUnlock = params => get('/bk/exportUnlock', params)

export const exportModule = params => get('/bk/exportModule', params)